$bg: #2d3a4b;

.login {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  position: relative;
  overflow: hidden;

  // 动态背景效果
  &::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: url('../images/warehouse-pattern.svg') repeat;
    opacity: 0.03;
    animation: rotate 60s linear infinite;
    pointer-events: none;
  }

  // 动态光效
  .light-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
      radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 40%),
      radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
  }

  .login-form {
    position: relative;
    width: 400px;
    max-width: 100%;
    padding: 40px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;

    // 装饰性边框效果
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #3A7BFF, #6D9FFF);
    }

    .title-container {
      position: relative;
      text-align: center;
      margin-bottom: 40px;

      .title {
        font-size: 24px;
        color: #1a2644;
        font-weight: 600;
        margin: 0 0 10px;
      }

      .subtitle {
        font-size: 14px;
        color: #666;
        margin: 0;
      }
    }

    .el-form-item {
      margin-bottom: 25px;
      
      .el-input {
        height: 44px;
        
        input {
          height: 44px;
          background: #f8faff;
          border: 1px solid #e8edf2;
          border-radius: 8px;
          padding: 0 15px 0 40px;
          color: #2c3e50;
          
          &::placeholder {
            color: #99a9bf;
          }
          
          &:focus {
            border-color: #3A7BFF;
            background: #fff;
            box-shadow: 0 0 0 2px rgba(58, 123, 255, 0.1);
          }
        }
      }

      .svg-container {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #99a9bf;
        z-index: 2;
      }
    }

    .show-pwd {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: #99a9bf;
      cursor: pointer;
    }

    .captcha-container {
      display: flex;
      align-items: center;
      gap: 12px;

      .el-input {
        flex: 1;
      }

      img {
        height: 44px;
        border-radius: 8px;
        cursor: pointer;
      }
    }

    .el-checkbox {
      color: #666;
      
      .el-checkbox__label {
        font-weight: normal;
      }
    }

    .el-button {
      width: 100%;
      height: 44px;
      font-size: 16px;
      margin-top: 10px;
      background: linear-gradient(90deg, #3A7BFF, #6D9FFF);
      border: none;
      border-radius: 8px;
      
      &:hover {
        background: linear-gradient(90deg, #2D62CC, #5886E6);
        transform: translateY(-1px);
      }
    }
  }
}

// 动画效果
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

// 响应式调整
@media screen and (max-width: 768px) {
  .login {
    .login-form {
      width: 90%;
      padding: 30px 20px;
    }
  }
} 